/*
 * Created by IntelliJ IDEA.
 * User: mark
 * Date: 12/03/2004
 * Time: 14:15:57
 */
package com.talios.jira.feeds.filters;

import com.talios.jira.browser.JiraItem;

import java.util.ArrayList;
import java.util.List;

public class FilterByFixVersion extends AbstractFeedFilter {

    public List filter(List unfilteredList) {
        List list = new ArrayList();
        for (Object aUnfilteredList : unfilteredList) {
            JiraItem jiraItem = (JiraItem) aUnfilteredList;

            if (jiraItem.getFixVersion().equals(getFilterOn())) {
                list.add(jiraItem);
            }

        }

        return list;
    }
}